/**
 * @PROJECT_NAME: java_2022_11_26
 * @DESCRIPTION:
 * @USER: Administrator
 * @DATE: 2022/11/26 13:22
 */

class base
{
    public void eat()
    {
        System.out.println("base eat");
    }
}


class child extends base
{
    public void eat()
    {
        System.out.println("child eat");
    }
}


public class demo1
{



    public static void main(String[] args)
    {
        child tmp = new child();
        tmp.eat();
    }
}
